<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <base href="#(basePath)"/>
  <title>交易管理 - 订单列表</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="static/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="static/admin.css" media="all">
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-form layui-card-header layuiadmin-card-header-auto">
        <div class="layui-form-item">
          <div class="layui-inline">
            <label class="layui-form-label">商户号</label>
            <div class="layui-input-inline">
              <input type="text" name="merchCode" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">商户订单号</label>
            <div class="layui-input-inline">
              <input type="text" name="merchOrderNo" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">系统订单号</label>
            <div class="layui-input-inline">
              <input type="text" name="orderNo" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">开始时间：</label>
            <div class="layui-input-inline">
              <input type="text" class="layui-input" id="createTimeStart" name="createTimeStart" placeholder="yyyy-MM-dd HH:mm:ss">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">结束时间：</label>
            <div class="layui-input-inline">
              <input type="text" class="layui-input" id="createTimeEnd" name="createTimeEnd" placeholder="yyyy-MM-dd HH:mm:ss">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
               <select name="orderStatus">
              	<option value="">请选择</option>
                	<option value="TS">成功</option>
                	<option value="IP">处理中</option>
                	<option value="TF">失败</option>
                	<option value="CX">已撤销</option>
              </select>
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">支付类别</label>
            <div class="layui-input-inline">
              <select name="bizType">
                <option value="">请选择</option>
                <option value="charge">充值</option>
                <option value="df_personal">对私代付</option>
                <option value="df_company">对公代付</option>
              </select>
            </div>
          </div>
          <div class="layui-inline">
            <button class="layui-btn layuiadmin-btn-list" lay-submit lay-filter="LAY-web-list-search">
              <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
            </button>
          </div>
        </div>
      </div>

      <div class="layui-card-body">
        <table id="LAY-web-list" lay-filter="LAY-web-list"></table> 
        <script type="text/html" id="table-content-list">
          <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="view"><i class="layui-icon layui-icon-form"></i>详情</a>
        </script>
      </div>
    </div>
  </div>

  <script src="static/layui/layui.js"></script>
  <script>
  layui.config({
    base: '#(basePath)' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'laydate', 'table', 'merchOrder'], function(){
	var laydate = layui.laydate;
    //日期时间选择器
    laydate.render({
      elem: '#createTimeStart'
      ,type: 'datetime'
    });
    laydate.render({
      elem: '#createTimeEnd'
      ,type: 'datetime'
    });
	
    // 表格
    var table = layui.table
    ,form = layui.form;
    
    //监听搜索
    form.on('submit(LAY-web-list-search)', function(data){
      var field = data.field;
      
      //执行重载
      table.reload('LAY-web-list', {
        where: field,
        page: {curr: 1}
      });
    });
  });
  </script>
</body>
</html>
